package collections.g2;

public class Kunde implements Comparable<Kunde> {

	private long id;

	public Kunde(long id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Kunde ID: " + id;
	}

	@Override
	public int compareTo(Kunde k) {
		if (this.id < k.id) {
			return -1;
		}
		if (this.id > k.id) {
			return 1;
		}
		return 0;
//		return this.id < k.id ? -1 : this.id == k.id ? 0 : 1;
	}
}
